package xin.core.jpa.model;

import xin.core.jpa.JpaConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;


@MappedSuperclass
@Cacheable
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true, of = {})
public abstract class SimpleUUIDEntity extends UUIDEntity {

	@Column(nullable = false, length = JpaConstant.NameColumnLength)
	protected String name;

	@Column(length = JpaConstant.DescriptionColumnLength)
	protected String description;

}
